package com.ybwh.springboot2.sys.dao;


import com.gitee.fastmybatis.core.mapper.CrudMapper;

import com.github.pagehelper.Page;

import com.ybwh.springboot2.sys.model.po.SysUserAccount;
import org.apache.ibatis.annotations.Param;

/**
* 账号表DAO
*
* @author Fan Beibei
* @date 2023-04-08 19:26:56
*/
public interface SysUserAccountMapper extends CrudMapper<SysUserAccount/*实体类*/, Long/*主键类型*/> {

    /**
    * 分页查询
    *
    * @param param    查询参数
    * @param pageNum  页号
    * @param pageSize 页大小
    * @return
    */
    Page<SysUserAccount> selectByPage(
        @Param("param") SysUserAccount param,
        @Param("pageNum") int pageNum,
        @Param("pageSize") int pageSize);


    /**
     * 根据账号查询
     *
     * @param account
     * @return
     */
    SysUserAccount selectByAccount(@Param("account") String account);

}